applaunchcontext: Add property annotations
authorMatthias Clasen <mclasen@redhat.com>
Wed, 24 Feb 2021 14:09:57 +0000 (09:09 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:32 +0000 (16:37 +0000)
Connect properties and getters with annotations.

gdk/gdkapplaunchcontext.c

index 30e9ee3bd0b9c8f1808e23a5ab4f7e41b7cb8218..66c9660be45224f76aec1f3bd5936b2a12fbf6f7 100644 (file)
@@ -121,6 +121,11 @@ gdk_app_launch_context_class_init (GdkAppLaunchContextClass *klass)
   context_class->get_startup_notify_id = gdk_app_launch_context_get_startup_notify_id;
   context_class->launch_failed = gdk_app_launch_context_launch_failed;
 
+  /**
+   * GdkAppLaunchContext:display: (attributes org.gtk.Property.get=gdk_app_launch_context_get_display)
+   *
+   * The display that the `GdkAppLaunchContext` is on.
+   */
   g_object_class_install_property (gobject_class, PROP_DISPLAY,
     g_param_spec_object ("display", P_("Display"), P_("Display"),
                          GDK_TYPE_DISPLAY,
@@ -166,7 +171,7 @@ gdk_app_launch_context_get_display_name (GAppLaunchContext *context,
 }
 
 /**
- * gdk_app_launch_context_get_display:
+ * gdk_app_launch_context_get_display: (attributes org.gtk.Method.get_property=display)
  * @context: a `GdkAppLaunchContext`
  *
  * Gets the `GdkDisplay` that @context is for.